<!DOCTYPE html>
<html lang="en">
<head>
    
    <meta charset="utf-8">
    <title>DataSource - Aliwork helper</title>
    
    <meta name="description" content="宜搭前端 JS 工具代码库" />
    
        <meta name="keywords" content="Aliwork 宜搭 工具库" />
        <meta name="keyword" content="Aliwork 宜搭 工具库" />
    
    
    
    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
    <script src="scripts/nav.js" defer></script>
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>

<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
  <div class="navicon"></div>
</label>

<label for="nav-trigger" class="overlay"></label>

<nav >
    
    <input type="text" id="nav-search" placeholder="Search" />
    
    
    <h2><a href="index.html">Home</a></h2><h2><a href="https://github.com/hackingzhang/aliwork-helper" target="_blank" class="menu-item" >Github</a></h2><h2><a href="https://gitee.com/hexzhangshuai/aliwork-helper" target="_blank" class="menu-item" >Gitee码云</a></h2><h2><a href="https://docs.aliwork.com/docs/developer/api/about" target="_blank" class="menu-item" >宜搭开放API</a></h2><h3>Modules</h3><ul><li><a href="module-BatchTaskRunner.html">BatchTaskRunner</a></li><li><a href="module-DataLinkage.html">DataLinkage</a><ul class='methods'><li data-type='method'><a href="module-DataLinkage.html#.dataLinkage">dataLinkage</a></li><li data-type='method'><a href="module-DataLinkage.html#.dataLinkageSubform">dataLinkageSubform</a></li><li data-type='method'><a href="module-DataLinkage.html#~resolveConditionMap">resolveConditionMap</a></li></ul></li><li><a href="module-DataSource.html">DataSource</a><ul class='methods'><li data-type='method'><a href="module-DataSource.html#.deleteFormData">deleteFormData</a></li><li data-type='method'><a href="module-DataSource.html#.executeTask">executeTask</a></li><li data-type='method'><a href="module-DataSource.html#.fetchSubformDatas">fetchSubformDatas</a></li><li data-type='method'><a href="module-DataSource.html#.fetchSubformDatasAll">fetchSubformDatasAll</a></li><li data-type='method'><a href="module-DataSource.html#.getFormData">getFormData</a></li><li data-type='method'><a href="module-DataSource.html#.getOperationRecords">getOperationRecords</a></li><li data-type='method'><a href="module-DataSource.html#.invokeConnector">invokeConnector</a></li><li data-type='method'><a href="module-DataSource.html#.saveFormData">saveFormData</a></li><li data-type='method'><a href="module-DataSource.html#.searchFormDataIds">searchFormDataIds</a></li><li data-type='method'><a href="module-DataSource.html#.searchFormDataIdsAll">searchFormDataIdsAll</a></li><li data-type='method'><a href="module-DataSource.html#.searchFormDatas">searchFormDatas</a></li><li data-type='method'><a href="module-DataSource.html#.searchFormDatasAll">searchFormDatasAll</a></li><li data-type='method'><a href="module-DataSource.html#.startInstance">startInstance</a></li><li data-type='method'><a href="module-DataSource.html#.updateFormData">updateFormData</a></li></ul></li><li><a href="module-Field.html">Field</a><ul class='methods'><li data-type='method'><a href="module-Field.html#.activateTabItems">activateTabItems</a></li><li data-type='method'><a href="module-Field.html#.fieldToString">fieldToString</a></li><li data-type='method'><a href="module-Field.html#.fieldValueDiff">fieldValueDiff</a></li><li data-type='method'><a href="module-Field.html#.fieldValueEqualSingle">fieldValueEqualSingle</a></li><li data-type='method'><a href="module-Field.html#.generateAssociationFormFieldData">generateAssociationFormFieldData</a></li><li data-type='method'><a href="module-Field.html#.generateDptFieldData">generateDptFieldData</a></li><li data-type='method'><a href="module-Field.html#.generateEmployeeFieldData">generateEmployeeFieldData</a></li><li data-type='method'><a href="module-Field.html#.getFieldDataTypeById">getFieldDataTypeById</a></li><li data-type='method'><a href="module-Field.html#.getFieldTypeById">getFieldTypeById</a></li><li data-type='method'><a href="module-Field.html#.mergeTo">mergeTo</a></li><li data-type='method'><a href="module-Field.html#.syncTo">syncTo</a></li></ul></li><li><a href="module-Subform.html">Subform</a><ul class='methods'><li data-type='method'><a href="module-Subform.html#.associateForm2Subform">associateForm2Subform</a></li><li data-type='method'><a href="module-Subform.html#.sum2Main">sum2Main</a></li><li data-type='method'><a href="module-Subform.html#~resolveFieldMaps">resolveFieldMaps</a></li></ul></li><li><a href="module-UI.html">UI</a><ul class='methods'><li data-type='method'><a href="module-UI.html#.dialog">dialog</a></li><li data-type='method'><a href="module-UI.html#.hijackSubmit">hijackSubmit</a></li><li data-type='method'><a href="module-UI.html#.loading">loading</a></li></ul></li><li><a href="module-Utils.html">Utils</a><ul class='methods'><li data-type='method'><a href="module-Utils.html#.dateTimeFormat">dateTimeFormat</a></li><li data-type='method'><a href="module-Utils.html#.generateRandomId">generateRandomId</a></li><li data-type='method'><a href="module-Utils.html#.isEmpty">isEmpty</a></li><li data-type='method'><a href="module-Utils.html#.retry">retry</a></li><li data-type='method'><a href="module-Utils.html#.round">round</a></li><li data-type='method'><a href="module-Utils.html#.sleep">sleep</a></li></ul></li></ul><h3>Classes</h3><ul><li><a href="FieldChangeLogger.html">FieldChangeLogger</a><ul class='methods'><li data-type='method'><a href="FieldChangeLogger.html#change">change</a></li><li data-type='method'><a href="FieldChangeLogger.html#clear">clear</a></li><li data-type='method'><a href="FieldChangeLogger.html#format">format</a></li></ul></li><li><a href="module-BatchTaskRunner-BatchTaskRunner.html">BatchTaskRunner</a><ul class='methods'><li data-type='method'><a href="module-BatchTaskRunner-BatchTaskRunner.html#_checkTaskProvider">_checkTaskProvider</a></li><li data-type='method'><a href="module-BatchTaskRunner-BatchTaskRunner.html#_doBatchTask">_doBatchTask</a></li><li data-type='method'><a href="module-BatchTaskRunner-BatchTaskRunner.html#_getTask">_getTask</a></li><li data-type='method'><a href="module-BatchTaskRunner-BatchTaskRunner.html#start">start</a></li></ul></li><li><a href="module-Subform-Subform.html">Subform</a><ul class='methods'><li data-type='method'><a href="module-Subform-Subform.html#getDatas">getDatas</a></li><li data-type='method'><a href="module-Subform-Subform.html#getFormGroupId">getFormGroupId</a></li><li data-type='method'><a href="module-Subform-Subform.html#getFormGroupIds">getFormGroupIds</a></li><li data-type='method'><a href="module-Subform-Subform.html#getIndex">getIndex</a></li><li data-type='method'><a href="module-Subform-Subform.html#getInstance">getInstance</a></li><li data-type='method'><a href="module-Subform-Subform.html#getItem">getItem</a></li><li data-type='method'><a href="module-Subform-Subform.html#setDatas">setDatas</a></li><li data-type='method'><a href="module-Subform-Subform.html#summary">summary</a></li><li data-type='method'><a href="module-Subform-Subform.html#updateItem">updateItem</a></li></ul></li></ul>
    
</nav>

<div id="main">
    
    <h1 class="page-title">DataSource</h1>
    

    




<section>

<header>
    
</header>

<article>
    
        <div class="container-overview">
        
            

<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>跨应用数据源以及连接器接口请求封装, 详情参考宜搭文档 <a href="https://docs.aliwork.com/docs/developer/api/openAPI">https://docs.aliwork.com/docs/developer/api/openAPI</a></li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line1">line 1</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>




            
                <div class="description usertext">跨应用数据源以及连接器接口请求封装, 详情参考宜搭文档 <a href="https://docs.aliwork.com/docs/developer/api/openAPI">https://docs.aliwork.com/docs/developer/api/openAPI</a></div>
            

            
        
        </div>
    

    

    

    
    
    

     

    

    

    
        <h3 class="subsection-title">Methods</h3>

        
            

    

    <h4 class="name" id=".deleteFormData"><span class="type-signature type-signature-async, static">(async, static) </span>deleteFormData<span class="signature">(context, instanceId)</span><span class="type-signature"></span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>删除表单实例数据</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line57">line 57</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 名称：deleteFormData
// 请求方法：POST
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/deleteFormData.json

deleteFormData(this, "FINST-12839128319823").then(() => {
  console.log("删除成功");
}, (e) => {
  console.log(`删除失败：${e.message}`);
});</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>instanceId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">实例ID</td>
        </tr>

    
    </tbody>
</table>



















        
            

    

    <h4 class="name" id=".executeTask"><span class="type-signature type-signature-async, static">(async, static) </span>executeTask<span class="signature">(context, instanceId, taskId, result, remark, formData<span class="signature-attributes">opt</span>, noExecuteExpressions<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>执行流程单个任务/流程节点审批</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line1067">line 1067</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 名称：executeTask
// 请求方法：POST
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/task/executeTask.json

executeTask(this, "FINST-xxxxxx", "25748312227", "AGREE", "同意", {}, 'n')
.then(() => {
    console.log("执行成功");
  },(e) => {
    console.log(`执行失败`);
  }
);</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>instanceId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last">实例ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>taskId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last">任务ID，可通过 <a href="module-DataSource.html#.getOperationRecords"><code>module:DataSource.getOperationRecords</code></a> 方法获取流程当前及历史节点taskId</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>result</code></td>
            

            <td class="type">
            
                
<span class="param-type">"AGREE"</span>
|

<span class="param-type">"DISAGREE"</span>



            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last">审批结果</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>remark</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last">审批意见</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last">表单数据对象</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>noExecuteExpressions</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>



            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last">是否<strong>不执行</strong>校验&关联操作</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise</span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".fetchSubformDatas"><span class="type-signature type-signature-async, static">(async, static) </span>fetchSubformDatas<span class="signature">(context, formUuid, formInstanceId, tableFieldId, currentPage, pageSize)</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="module-DataSource.html#.SubformDatasResponse">module:DataSource.SubformDatasResponse</a>>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>分页获取子表数据</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line106">line 106</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 名称：fetchSubformDatas
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/listTableDataByFormInstIdAndTableId.json

fetchSubformDatas(
  this,
  "FORM-xxxxxx",
  "FINST-xxxxxx",
  "tableField_xxxxxx",
   1, 50
 ).then(resp => {
   const { totalCount, subformDatas, currentPage } = resp;
 }, (e) => {
   console.log(`获取失败：${e.message}`);
 });</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formUuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formInstanceId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单实例ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tableFieldId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">子表唯一标识</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>currentPage</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">当前页， 默认为1</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>pageSize</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">每页记录数，最大50条，默认为10</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，resolve响应对象，参见：<a href="module-DataSource.html#.SubformDatasResponse"><code>module:DataSource.SubformDatasResponse</code></a>
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;<a href="module-DataSource.html#.SubformDatasResponse">module:DataSource.SubformDatasResponse</a>></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".fetchSubformDatasAll"><span class="type-signature type-signature-async, static">(async, static) </span>fetchSubformDatasAll<span class="signature">(context, formUuid, formInstanceId, tableFieldId)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;Object>>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>获取所有子表数据</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line174">line 174</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 名称：fetchSubformDatas
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/listTableDataByFormInstIdAndTableId.json

fetchSubformDatasAll(
  this,
  "FORM-xxxxxx",
  "FINST-xxxxxx",
  "tableField_xxxxxx",
 ).then(allsubformDatas => {
   console.log("子表数据：", allsubformDatas);
 }, (e) => {
   console.log(`获取失败：${e.message}`);
 });</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formUuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formInstanceId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单实例ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tableFieldId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">子表唯一标识</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，resolve所有子表数据数组
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;Array.&lt;Object>></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".getFormData"><span class="type-signature type-signature-static">(static) </span>getFormData<span class="signature">(context, type, formInstId)</span><span class="type-signature"> &rarr; {Promise.&lt;Object>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>获取表单实例详情</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line254">line 254</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 如果要获取普通表单实例详情
// 名称：getFormData
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/getFormDataById.json
// 如果要获取流程表单实例详情
// 名称：getProcessInstance
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/process/getInstanceById.json

// 获取普通表单实例数据
getFormData(this, "form", "FINST-TD866Y81CHLF6FVA9WR6J7GQPBM72KUTJRFOL6T9")
.then(formData => {
  console.log("表单实例数据", formData);
}).catch(e => {
  console.log(`获取失败：${e.message}`);
});

// 获取流程表单实例数据
getFormData(this, "process", "62a1ef56-8ded-4e77-89a0-db32c95a6d04")
.then(formData => {
  console.log("流程实例数据", formData);
}).catch(e => {
  console.log(`获取失败：${e.message}`);
});</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>type</code></td>
            

            <td class="type">
            
                
<span class="param-type">"form"</span>
|

<span class="param-type">"process"</span>



            
            </td>

            

            

            <td class="description last">类型，取值为 form-表单 或者 porcess-流程</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formInstId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单实例ID</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，resolve表单实例数据
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;Object></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".getOperationRecords"><span class="type-signature type-signature-async, static">(async, static) </span>getOperationRecords<span class="signature">(context, instanceId)</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="module-DataSource.html#~OperationRecord">module:DataSource~OperationRecord</a>>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>获取流程审批记录</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line1033">line 1033</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 名称：getOperationRecords
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/process/getOperationRecords.json

getOperationRecords(this, "2c517124-e73e-4528-acc8-28216c6c8df9")
.then((records) => {
    console.log("获取成功", records);
  },(e) => {
    console.log(`获取失败：${e.message}`);
  }
);</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>instanceId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">流程实例ID</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，resolve流程审批记录列表
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;<a href="module-DataSource.html#~OperationRecord">module:DataSource~OperationRecord</a>></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".invokeConnector"><span class="type-signature type-signature-async, static">(async, static) </span>invokeConnector<span class="signature">(context, connectorName, params)</span><span class="type-signature"> &rarr; {Promise.&lt;object>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>调用连接器</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line31">line 31</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 假设要通过连接器调用钉钉接口获取部门下的子部门信息
invokeConnector(this, "subDepts", {
  Query: {
    access_token: ""
  },
  Body: {
    dept_id: 1
  }
}).then((resp) => {
  console.log("请求成功: ", resp);
}, (e) => {
  console.log(`请求失败：${e.message}`);
})</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>connectorName</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">连接器名称，数据源面板中添加连接器时配置的名称</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>params</code></td>
            

            <td class="type">
            
                
<span class="param-type">object</span>



            
            </td>

            

            

            <td class="description last">连接器执行动作参数</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;object></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".saveFormData"><span class="type-signature type-signature-async, static">(async, static) </span>saveFormData<span class="signature">(context, formUuid, formData)</span><span class="type-signature"> &rarr; {Promise.&lt;string>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>新建表单实例</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line313">line 313</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 名称：saveFormData
// 请求方法：POST
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/saveFormData.json

saveFormData(
  this,
  "FORM-xxxxxx",
  { textField_xxxxxx: "hello", numberField_xxxxxx: 100 },
).then(
  (instanceId) => {
    console.log("创建成功，实例ID：${instanceId}");
  },
  (e) => {
    console.log(`创建失败：${e.message}`);
  }
)</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formUuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">表单数据对象</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，resolve表单实例ID
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;string></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".searchFormDataIds"><span class="type-signature type-signature-async, static">(async, static) </span>searchFormDataIds<span class="signature">(context, type, formUuid, searchFieldObject, currentPage, pageSize, options)</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="module-DataSource.html#.FormDataIdsResponse">module:DataSource.FormDataIdsResponse</a>>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>查询表单实例ID列表 <br/>
⚠️如果使用文本字段（单行/多行文本）作为查询条件，执行的是模糊查询，比如查询“张三”，会把“张三丰"也查询出来</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line492">line 492</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 如果要更新普通表单：
// 名称：searchFormDataIds
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/searchFormDataIds.json
// 如果要更新流程表单：
// 名称：getInstanceIds
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/process/getInstanceIds.json

// 搜索普通表单
searchFormDataIds(
  this,
  "form",
  "FORM-xxxxxx",
  { textField_xxxxxx: "hello" },
  1, 100,
  { dynamicOrder: { "numberField_xxx": "+" } }
).then((resp) => {
    const { currentPage, totalCount, ids } = resp;
    console.log(`共${totalCount}条数据`);
    console.log(ids);
  },(e) => {
    console.log(`查询失败：${e.message}`);
  }
);

// 搜索流程表单
searchFormDataIds(
  this,
  "process",
  "FORM-xxxxxx",
  { textField_xxxxxx: "hello" },
  1, 100,
  { dynamicOrder: { "numberField_xxx": "+" }, instanceStatus: "COMPLETED" }
).then((resp) => {
    const { currentPage, totalCount, ids } = resp;
    console.log(`共${e.totalCount}条数据`);
    console.log(ids);
  },(e) => {
    console.log(`查询失败：${e.message}`);
  }
);</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>type</code></td>
            

            <td class="type">
            
                
<span class="param-type">"form"</span>
|

<span class="param-type">"process"</span>



            
            </td>

            

            

            <td class="description last">表单类型，可选 form、process，分别代表普通表单和流程</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formUuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>searchFieldObject</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">表单组件查询条件对象</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>currentPage</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">当前页， 默认为1</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>pageSize</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">每页记录数， 默认为10</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>options</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="module-DataSource.html#~SearchFormDatasOption">module:DataSource~SearchFormDatasOption</a></span>



            
            </td>

            

            

            <td class="description last">查询选项</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，resolve表单实例ID响应对象 <a href="module-DataSource.html#.FormDataIdsResponse"><code>module:DataSource.FormDataIdsResponse</code></a>
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;<a href="module-DataSource.html#.FormDataIdsResponse">module:DataSource.FormDataIdsResponse</a>></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".searchFormDataIdsAll"><span class="type-signature type-signature-async, static">(async, static) </span>searchFormDataIdsAll<span class="signature">(context, type, formUuid, searchFieldObject, options)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;string>>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>查询符合条件的所有表单实例ID <br/>
⚠️如果使用文本字段（单行/多行文本）作为查询条件，执行的是模糊查询，比如查询“张三”，会把“张三丰"也查询出来</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line597">line 597</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 如果要更新普通表单：
// 名称：searchFormDataIds
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/searchFormDataIds.json
// 如果要更新流程表单：
// 名称：getInstanceIds
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/process/getInstanceIds.json

// 搜索普通表单
searchFormDataIdsAll(
  this,
  "form",
  "FORM-xxxxxx",
  { textField_xxxxxx: "hello" },
  { dynamicOrder: "numberField_xxx": "+" }
).then((ids) => {
    console.log("查询成功", ids);
  },(e) => {
    console.log(`查询失败：${e.message}`);
  }
);

// 搜索流程表单
searchFormDataIdsAll(
  this,
  "process",
  "FORM-xxxxxx",
  { textField_xxxxxx: "hello" },
  { dynamicOrder: "numberField_xxx": "+", instanceStatus: "COMPLETED" }
).then((ids) => {
    console.log("查询成功", ids);
  },(e) => {
    console.log(`查询失败：${e.message}`);
  }
);</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>type</code></td>
            

            <td class="type">
            
                
<span class="param-type">"form"</span>
|

<span class="param-type">"process"</span>



            
            </td>

            

            

            <td class="description last">表单类型，可选 form、process，分别代表普通表单和流程</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formUuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>searchFieldObject</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">表单组件查询条件对象</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>options</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="module-DataSource.html#~SearchFormDatasOption">module:DataSource~SearchFormDatasOption</a></span>



            
            </td>

            

            

            <td class="description last">查询选项</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，resolve表单实例ID数组
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;Array.&lt;string>></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".searchFormDatas"><span class="type-signature type-signature-async, static">(async, static) </span>searchFormDatas<span class="signature">(context, type, formUuid, searchFieldObject, currentPage, pageSize, options)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;<a href="module-DataSource.html#~FormDatasResponse">module:DataSource~FormDatasResponse</a>>>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>分页查询表单实例数据 <br/>
⚠️如果使用文本字段（单行/多行文本）作为查询条件，执行的是模糊查询，比如查询“张三”，会把“张三丰"也查询出来。
若要精确查询，请将options参数的strictQuery选项设置为true</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line725">line 725</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 如果要更新普通表单：
// 名称：searchFormDatas
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/searchFormDatas.json
// 如果要更新流程表单：
// 名称：getInstances
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/process/getInstances.json

// 搜索普通表单
searchFormDatas(
  this,
  "form",
  "FORM-xxxxxx",
  { textField_xxxxxx: "hello" },
  1, 100,
  // 精确查询，按照numberField_xxx升序排序
  { strictQuery: true, dynamicOrder: "numberField_xxx": "+" }
).then((resp) => {
    const { currentPage, totalCount, formDatas } = resp;
    console.log(`共${totalCount}条数据`);
    console.log(formDatas);
  },(e) => {
    console.log(`查询失败：${e.message}`);
  }
);

// 搜索流程表单
searchFormDatas(
  this,
  "process",
  "FORM-xxxxxx",
  { textField_xxxxxx: "hello" },
  1, 100,
  // 精确查询，流程状态已完成，按照numberField_xxx升序排序
  { strictQuery: true, dynamicOrder: "numberField_xxx": "+", instanceStatus: "COMPLETED" }
).then((ids) => {
    const { currentPage, totalCount, formDatas } = resp;
    console.log(`共${totalCount}条数据`);
    console.log(formDatas);
  },(e) => {
    console.log(`查询失败：${e.message}`);
  }
);</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>type</code></td>
            

            <td class="type">
            
                
<span class="param-type">"form"</span>
|

<span class="param-type">"process"</span>



            
            </td>

            

            

            <td class="description last">表单类型，可选 form、process，分别代表普通表单和流程</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formUuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>searchFieldObject</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">表单组件查询条件对象</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>currentPage</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">当前页， 默认为1</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>pageSize</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">每页记录数， 默认为10</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>options</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="module-DataSource.html#~SearchFormDatasOption">module:DataSource~SearchFormDatasOption</a></span>



            
            </td>

            

            

            <td class="description last">查询选项</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，resolve表单实例ID响应对象 <a href="module-DataSource.html#~FormDatasResponse"><code>module:DataSource~FormDatasResponse</code></a>
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;Array.&lt;<a href="module-DataSource.html#~FormDatasResponse">module:DataSource~FormDatasResponse</a>>></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".searchFormDatasAll"><span class="type-signature type-signature-async, static">(async, static) </span>searchFormDatasAll<span class="signature">(context, type, formUuid, searchFieldObject, options)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;Object>>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>查询符合条件的所有表单实例 <br/>
⚠️如果使用文本字段（单行/多行文本）作为查询条件，执行的是模糊查询，比如查询“张三”，会把“张三丰"也查询出来。
若要精确查询，请将options参数的strictQuery选项设置为true</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line889">line 889</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 如果要更新普通表单：
// 名称：searchFormDatas
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/searchFormDatas.json
// 如果要更新流程表单：
// 名称：getInstances
// 请求方法：GET
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/process/getInstances.json

// 搜索普通表单
searchFormDatasAll(
  this,
  "form",
  "FORM-xxxxxx",
  { textField_xxxxxx: "hello" },
  // 精确查询，按照numberField_xxx升序排序
  { strictQuery: true, dynamicOrder: { "numberField_xxx": "+" } }
).then((formDatas) => {
    console.log("查询成功", formDatas);
  },(e) => {
    console.log(`查询失败：${e.message}`);
  }
);

// 搜索流程表单
searchFormDatasAll(
  this,
  "process",
  "FORM-xxxxxx",
  { textField_xxxxxx: "hello" },
  // 精确查询，流程状态已完成，按照numberField_xxx升序排序
  { strictQuery: true, dynamicOrder: { "numberField_xxx": "+" }, instanceStatus: "COMPLETED" }
).then((formDatas) => {
    console.log("查询成功", formDatas);
  },(e) => {
    console.log(`查询失败：${e.message}`);
  }
);</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>type</code></td>
            

            <td class="type">
            
                
<span class="param-type">"form"</span>
|

<span class="param-type">"process"</span>



            
            </td>

            

            

            <td class="description last">表单类型，可选 form、process，分别代表普通表单和流程</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formUuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>searchFieldObject</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">表单组件查询条件对象</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>options</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="module-DataSource.html#~SearchFormDatasOption">module:DataSource~SearchFormDatasOption</a></span>



            
            </td>

            

            

            <td class="description last">查询选项</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，resolve表单实例数据数组
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;Array.&lt;Object>></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".startInstance"><span class="type-signature type-signature-async, static">(async, static) </span>startInstance<span class="signature">(context, processCode, formUuid, formData, dptId<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;string>}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>发起流程</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line364">line 364</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 名称：startInstance
// 请求方法：POST
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/process/startInstance.json

startInstance(
  this,
  "TPROC--xxxxxx",
  "FORM-xxxxxx",
  { textField_xxxxxx: "hello", numberField_xxxxxx: 100 },
).then(
  (instanceId) => {
    console.log("创建成功，实例ID：${instanceId}");
  },
  (e) => {
    console.log(`创建失败：${e.message}`);
  }
)</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>processCode</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last">流程 code</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formUuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last">表单ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            

            <td class="description last">表单数据对象</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dptId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            

            <td class="description last">发起部门ID，如不填默认为发起人主事部门</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，resolve流程实例ID
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise.&lt;string></span>



    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".updateFormData"><span class="type-signature type-signature-async, static">(async, static) </span>updateFormData<span class="signature">(context, type, instanceId, updateFormData, useLatestVersion)</span><span class="type-signature"> &rarr; {Promise}</span></h4>

    




<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>更新表单/流程实例数据</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line959">line 959</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>











    <h5 class="h5-examples">Example</h5>
    
    <pre class="prettyprint"><code>// 使用前请添加数据源：
// 如果要更新普通表单：
// 名称：updateFormData
// 请求方法：POST
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/updateFormData.json
// 如果要更新流程表单：
// 名称：updateInstance
// 请求方法：POST
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/process/updateInstance.json

updateFormData(
  this,
  "form",
  "FINST-xxxxxx",
  { textField_xxxxxx: "a new value" },
  true
).then(() => {
    console.log("更新成功");
  },(e) => {
    console.log(`更新失败：${e.message}`);
  }
);</code></pre>




    <h5 class="h5-parameters">Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        
        <th>Default</th>
        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>context</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last">this上下文</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>type</code></td>
            

            <td class="type">
            
                
<span class="param-type">"form"</span>
|

<span class="param-type">"process"</span>



            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last">表单类型，可选 form、process，分别代表普通表单和流程</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>instanceId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last">实例ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>updateFormData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last">要更新的表单数据对象</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>useLatestVersion</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>



            
            </td>

            

            
                <td class="default">
                
                    <code>false</code>
                
                </td>
            

            <td class="description last">是否使用最新的表单版本进行更新，默认为false，仅对普通表单有效</td>
        </tr>

    
    </tbody>
</table>
















<h5 class="h5-returns">Returns:</h5>

        
<div class="param-desc">
    一个Promise，更新成功时resolve，失败时reject
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise</span>



    </dd>
</dl>

    



        
    

    
        <h3 class="subsection-title">Type Definitions</h3>

        
                
<h4 class="name" id=".FormDataIdsResponse">FormDataIdsResponse</h4>





<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>查询表单实例ID响应对象</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line425">line 425</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>



    <h5 class="subsection-title">Properties:</h5>

    

<table class="props">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>totalCount</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">表单数据总条数</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>currentPage</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">当前页码</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ids</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array.&lt;string></span>



            
            </td>

            

            

            <td class="description last">表单实例ID数组</td>
        </tr>

    
    </tbody>
</table>






<div class="description usertext">
    查询表单实例ID响应对象
</div>



    <h5 class="h5-types">Type:</h5>
    <ul>
        <li>
            
<span class="param-type">Object</span>



        </li>
    </ul>






            
                
<h4 class="name" id=".SubformDatasResponse">SubformDatasResponse</h4>





<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>获取子表数据响应对象</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line68">line 68</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>



    <h5 class="subsection-title">Properties:</h5>

    

<table class="props">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>totalCount</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">子表数据总条数</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>currentPage</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">当前页码</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>subformDatas</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array.&lt;Object></span>



            
            </td>

            

            

            <td class="description last">子表数据数组</td>
        </tr>

    
    </tbody>
</table>






<div class="description usertext">
    获取子表数据响应对象
</div>



    <h5 class="h5-types">Type:</h5>
    <ul>
        <li>
            
<span class="param-type">Object</span>



        </li>
    </ul>






            
                
<h4 class="name" id="~ApprovedResult">ApprovedResult</h4>





<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>流程审批结果<br/>
agree - 同意<br/>
disagree - 不同意</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line399">line 399</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    流程审批结果<br/>
agree - 同意<br/>
disagree - 不同意
</div>



    <h5 class="h5-types">Type:</h5>
    <ul>
        <li>
            
<span class="param-type">"agree"</span>
|

<span class="param-type">"disagree"</span>



        </li>
    </ul>






            
                
<h4 class="name" id="~FormData">FormData</h4>





<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>表单实例数据对象</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line633">line 633</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>



    <h5 class="subsection-title">Properties:</h5>

    

<table class="props">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>title</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">数据标题</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formUuid</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">表单formUuid</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>instanceId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">实例ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>processCode</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">流程码（🚨仅流程包含该字段）</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>instanceStatus</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="module-DataSource.html#~ProcessStatus">module:DataSource~ProcessStatus</a></span>



            
            </td>

            

            

            <td class="description last">流程状态（🚨仅流程包含该字段），可能值为：RUNNING, TERMINATED, COMPLETED, ERROR。分别代表：运行中，已终止，已完成，异常。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>approvedResult</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="module-DataSource.html#~ApprovedResult">module:DataSource~ApprovedResult</a></span>



            
            </td>

            

            

            <td class="description last">审批结果（🚨仅流程包含该字段）</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>creator</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">创建人ID（🚨仅表单包含该字段）</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>originator</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">发起人对象</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>originatorCorpId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">发起人企业ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>originatorCorpName</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">发起人企业名称</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>gmtCreate</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">创建时间戳</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>modifier</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">最后修改人ID（🚨仅表单包含该字段）</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>modifyUser</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">最后修改人对象（🚨仅表单包含该字段）</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>gmtModified</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">最后修改时间戳</td>
        </tr>

    
    </tbody>
</table>






<div class="description usertext">
    表单实例数据对象
</div>



    <h5 class="h5-types">Type:</h5>
    <ul>
        <li>
            
<span class="param-type">Object.&lt;string, *></span>



        </li>
    </ul>






            
                
<h4 class="name" id="~FormDatasResponse">FormDatasResponse</h4>





<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>查询表单实例数据响应对象</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line653">line 653</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>



    <h5 class="subsection-title">Properties:</h5>

    

<table class="props">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>totalCount</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">表单数据总条数</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>currentPage</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">当前页码</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>actualPageSize</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">接口返回的当前页数据量，当开启严格查询时，
由于进行了额外的筛选，方法返回的数据量量可能小于接口返回的数据量</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>formDatas</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array.&lt;<a href="module-DataSource.html#~FormData">module:DataSource~FormData</a>></span>



            
            </td>

            

            

            <td class="description last">表单实例数据数组</td>
        </tr>

    
    </tbody>
</table>






<div class="description usertext">
    查询表单实例数据响应对象
</div>



    <h5 class="h5-types">Type:</h5>
    <ul>
        <li>
            
<span class="param-type">Object</span>



        </li>
    </ul>






            
                
<h4 class="name" id="~OperationRecord">OperationRecord</h4>





<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>流程审批记录对象</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line990">line 990</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>



    <h5 class="subsection-title">Properties:</h5>

    

<table class="props">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>action</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">动作描述文本，仅已处理节点有该字段</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>actionExt</code></td>
            

            <td class="type">
            
                
<span class="param-type">"submit"</span>
|

<span class="param-type">"agree"</span>
|

<span class="param-type">"disagree"</span>
|

<span class="param-type">"doing"</span>
|

<span class="param-type">"next"</span>



            
            </td>

            

            

            <td class="description last">动作描述码，
submit表示提交节点、agree表示节点审批结果为同意、disagree表示审批结果为不同意、
doing表示当前节点，next表示此节点为后续待审批节点</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>activityId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">活动ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>domains</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array</span>



            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>operator</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">操作人ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>operatorAgentIds</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array.&lt;string></span>



            
            </td>

            

            

            <td class="description last">代理人ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>operatorDisplayName</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">操作人显示名</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>operatorName</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">操作人姓名</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>operatorPhotoUrl</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">操作人头像链接</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>processInstanceId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">流程实例ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>showName</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">节点名</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>size</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">-</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>taskHoldTime</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>



            
            </td>

            

            

            <td class="description last">任务持续时间？</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>taskId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">任务ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>type</code></td>
            

            <td class="type">
            
                
<span class="param-type">"HISTORY"</span>
|

<span class="param-type">"TODO"</span>



            
            </td>

            

            

            <td class="description last">记录类型，HISTORY表示已处理的节点，TODO表示待处理节点</td>
        </tr>

    
    </tbody>
</table>






<div class="description usertext">
    流程审批记录对象
</div>



    <h5 class="h5-types">Type:</h5>
    <ul>
        <li>
            
<span class="param-type">Object</span>



        </li>
    </ul>






            
                
<h4 class="name" id="~ProcessStatus">ProcessStatus</h4>





<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>流程实例状态<br/>
RUNNING - 运行中<br/>
TERMINATED - 已终止<br/>
COMPLETED - 已完成<br/>
ERROR - 异常</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line390">line 390</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    流程实例状态<br/>
RUNNING - 运行中<br/>
TERMINATED - 已终止<br/>
COMPLETED - 已完成<br/>
ERROR - 异常
</div>



    <h5 class="h5-types">Type:</h5>
    <ul>
        <li>
            
<span class="param-type">"RUNNING"</span>
|

<span class="param-type">"TERMINATED"</span>
|

<span class="param-type">"COMPLETED"</span>
|

<span class="param-type">"ERROR"</span>



        </li>
    </ul>






            
                
<h4 class="name" id="~SearchFormDatasOption">SearchFormDatasOption</h4>





<dl class="details">
    
    <dt class="tag-description">Description:</dt>
    <dd class="tag-description"><ul class="dummy"><li>搜索表单（流程）实例数据（ID）选项</li></ul></dd>
    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="data-source.js.html">data-source.js</a>, <a href="data-source.js.html#line406">line 406</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>



    <h5 class="subsection-title">Properties:</h5>

    

<table class="props">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>strictQuery</code></td>
            

            <td class="type">
            
                
<span class="param-type">boolean</span>



            
            </td>

            

            

            <td class="description last">严格（精确）查询，默认不启用。当使用单行文本或者多行文本组件作为查询条件时执行的是模糊查询，
比如查询"张三"会把“张三丰”也查询出来。将strictQuery设置为ture会对查询结果执行进一步筛选，保证返回文本严格相等的数据。<br/>
⚠️查询表单实例ID方法<a href="module-DataSource.html#.searchFormDataIds"><code>module:DataSource.searchFormDataIds</code></a> <a href="module-DataSource.html#.searchFormDataIdsAll"><code>module:DataSource.searchFormDataIdsAll</code></a>不支持此选项。<br/>
⚠️如果使用分页查询，严格查询的结果数量可能少于分页数量。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>dynamicOrder</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>



            
            </td>

            

            

            <td class="description last">排序规则</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>originatorId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">数据提交人/流程发起人工号</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>createFrom</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">查询在该时间段创建的数据列表</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>createTo</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">查询在该时间段创建的数据列表</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>modifiedFrom</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">查询在该时间段有修改的数据列表</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>modifiedTo</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">查询在该时间段有修改的数据列表</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>taskId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>



            
            </td>

            

            

            <td class="description last">任务ID，仅查询流程表单有效</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>instanceStatus</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="module-DataSource.html#~ProcessStatus">module:DataSource~ProcessStatus</a></span>



            
            </td>

            

            

            <td class="description last">实例状态，仅查询流程表单有效,可选值为：RUNNING, TERMINATED, COMPLETED, ERROR。分别代表：运行中，已终止，已完成，异常。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>approvedResult</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="module-DataSource.html#~ApprovedResult">module:DataSource~ApprovedResult</a></span>



            
            </td>

            

            

            <td class="description last">流程审批结果，仅查询流程表单有效，可选值为agree、disagree，分别代表同意、不同意。</td>
        </tr>

    
    </tbody>
</table>






<div class="description usertext">
    搜索表单（流程）实例数据（ID）选项
</div>



    <h5 class="h5-types">Type:</h5>
    <ul>
        <li>
            
<span class="param-type">Object</span>



        </li>
    </ul>






            
    

    
</article>

</section>




    
    
</div>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Jun 19 2024 12:08:14 GMT+0800 (中国标准时间) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
<script src="scripts/polyfill.js"></script>
<script src="scripts/linenumber.js"></script>

<script src="scripts/search.js" defer></script>



</body>
</html>